package nxu;

import com.jfinal.config.*;
import com.jfinal.template.Engine;
import nxu.contral.MainContral;
import nxu.contral.PostController;

public class MainConfig extends JFinalConfig{
    @Override
    public void configConstant(Constants constants) {
     //打开jfinal的开发模式 true表示打开
        //
     constants.setDevMode(true);
    }

    @Override
    public void configRoute(Routes routes) {
        routes.add("/", MainContral.class);
        //"/"的请求由MainContral处理
        routes.add("/post", PostController.class);
        routes.setBaseViewPath("/WEB-INF/templates");
    }

    @Override
    public void configEngine(Engine engine) {

    }

    @Override
    public void configPlugin(Plugins plugins) {

    }

    @Override
    public void configInterceptor(Interceptors interceptors) {

    }

    @Override
    public void configHandler(Handlers handlers) {

    }
}
